import requests
from api.get_token import get_login_token
id ="1530092316595933184"
resp = requests.post(url="http://ihrm-test.itheima.net/api/company/department",
              headers={"Authorization": get_login_token()},
              json={"name": "hzb", "code": "13712834770"})
print("添加部门", resp.json())